package objects;

import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.geom.Rectangle;
import org.newdawn.slick.geom.Vector2f;

public class Tile {
	
	protected Image texture;
	private Vector2f pos;
	public float getX(){return pos.x*40;}
	public float getY(){return pos.y*40;}
	private Rectangle hitbox;
	public Rectangle getHitbox(){return hitbox;}
	
	protected String type;
	public String getType(){return type;}
	
	public Tile(Vector2f case_pos) throws SlickException{
		
		pos = case_pos;
		hitbox = new Rectangle(pos.x*40, pos.y*40, 40, 40);
		
	}
	
	public void render(Graphics g){
		
		texture.draw((int)pos.x*40, (int)pos.y*40, 4);
		g.draw(hitbox);
		
	}
}
